package com.zt.ztyh.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @TableName ztyh_fundsinfo
 */
@TableName(value ="ztyh_fundsinfo")
@Data
public class Fundsinfo implements Serializable {
    /**
     * 理财产品主键
     */
    @TableField(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 产品名称
     */
    @TableField(value = "fundsName")
    private String fundsname;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 利率
     */
    @TableField(value = "rate")
    private BigDecimal rate;

    /**
     * 期限
     */
    @TableField(value = "term")
    private String term;

    /**
     * 走势
     */
    @TableField(value = "tread")
    private String tread;

    /**
     * 交易规则
     */
    @TableField(value = "rules")
    private String rules;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 修改时间
     */
    @TableField(value = "updateTime")
    private Date updatetime;

    /**
     * 冗余
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 数量
     */
    @TableField(value = "share")
    private Integer share;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
